package csc.fresher.entity;

public enum SavingTransactionType {
	SAVING("Saving"), WITHDRAW("Withdraw");
	private final String type;

	public String getType() {
		return type;
	}

	private SavingTransactionType(String type) {
		this.type = type;
	}
	
	public static SavingTransactionType getFromType(String stringType) {
        switch (stringType) {
        case "Saving":
            return SAVING;
        case "Withdraw":
            return WITHDRAW;
        default:
            return null;
        }
    }
}
